<div>	
	<?php
		if($this->questions):
			?>
				<table cellpadding="1" cellspacing="1" border="1" >
					<thead>
						<tr>
							<th>id</th>
							<th>subject</th>
							<th>#</th>
							<th>#</th>
						</tr>
					</thead>
					<tbody>
			<?php
				$updateUrl = $this->url(array('ctrl' => 'questions', 'act' => 'update'));
				$deleteUrl = $this->url(array('ctrl' => 'questions', 'act' => 'delete'));
				foreach ($this->questions as $question):
					?>
						<tr>
							<td><?php echo $this->escape($question->id);?></td>
							<td><?php echo $this->escape($question->subject);?></td>
							<td>
								<a href="<?php echo $updateUrl;?>&id=<?php echo $question->id;?>" >
									Update
								</a>
							</td>
							<td>
								<a href="<?php echo $deleteUrl;?>&id=<?php echo $question->id;?>" >
									Delete
								</a>
							</td>
						</tr>
					<?php
				endforeach;
			?></tbody></table><?php
		endif; 
	?>
</div>